import 'package:s_mankey/model/banner_model.dart';
import 'package:s_mankey/provider/view_state_model.dart';
import 'package:s_mankey/service/smonkey_repository.dart';

class BnnaerDemoVModel extends ViewStateModel {

  var datas;

  initDatas() async {
    setBusy();
    try {
      datas = await SmonkeysRepository.fetchHomeBanner1();
      setIdle();
    } catch (e, s) {
      setError(e, s, message: '出错了');
    }
  }
}